<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<script src="js/jquery.min.js"></script>
	<script src="js/jquery.pagination.js"></script>
	<link rel="stylesheet" href="style/pagination.css">
	<script>
		
	$(function(){

		//console.log($(".pagination").pagination);

		$(".pagination").pagination(100,{
			items_per_page:5,
			num_display_entries:2,
			current_page:3,
			num_edge_entries:6,
			// link_to:"http://www.baidu.com",
			prev_text:"<<<",
			next_text:">>>",
			ellipse_text:"-----",
			prev_show_always:false,
			callback:function(index){
				console.log("切换页码了：" + index)
			}
		})
	})

	</script>
</head>
<body>
	
	<div class="pagination"></div>

</body>
</html>